package sunbao.ido.thread;

import java.util.concurrent.LinkedBlockingQueue;

public class WorkQueue {

    public static void main(String[] args) throws InterruptedException {

        LinkedBlockingQueue queue = new LinkedBlockingQueue(10);
        for (int i = 0; i < 20; i++) {
            System.out.println(i);
            queue.put(i);
        }
        System.out.println("end");

    }

}
